package com.qf.coupon2203.getcoupon.feign;


import com.qf.coupon2203.domain.entity.Coupon;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("COUPON")
public interface CouponClient {

    @GetMapping("/coupon/update")
    String updateCouponStatus(Coupon coupon);

    @GetMapping("/usercoupon/insert")
    public String insertUserCoupon(@RequestParam("name") String name, @RequestParam("phone")String phone, @RequestParam("couponId")String couponId);
}
